package com.shopx.cm.dao.db1;

import com.shopx.cm.bean.CmMeasure;
import com.shopx.cm.dto.MaterialUserDTO;
import com.shopx.cm.model.CmMeasureModel;
import com.shopx.dal.mysql.SqlMapper;
import java.util.List;

/**
 * TODO
 * @author lituo
 * @className: CmMeasure
 * @date 2025-01-07
 */
@SqlMapper
public interface CmMeasureDao {
    /**
     * 查询明细记录
     * @author lituo
     * @date 2025-01-07
     * @param cmMeasure
     * @return CmMeasureModel
     */
    CmMeasureModel selectByPrimaryKey(CmMeasure cmMeasure);
    /**
     * 新增记录
     * @author lituo
     * @date 2025-01-07
     * @param cmMeasure
     * @return int
     */
	int insertSelective(CmMeasure cmMeasure);

    /**
     * 修改记录
     * @author lituo
     * @date 2025-01-07
     * @param cmMeasure
     * @return int
     */
	int updateByPrimaryKeySelective(CmMeasure cmMeasure);

    /**
     * 删除记录
     * @author lituo
     * @date 2025-01-07
     * @param cmMeasure
     * @return int
     */
	int deleteByPrimaryKey(CmMeasure cmMeasure);

    /**
     * 查询总记录数
     * @author lituo
     * @date 2025-01-07
     * @param cmMeasure
     * @return int
     */
	int selectCount(CmMeasureModel cmMeasure);

    /**
     * 查询列表
     * @author lituo
     * @date 2025-01-07
     * @param cmMeasure
     * @return List<CmMeasureModel>
*/
	List<CmMeasureModel> selectList(CmMeasureModel cmMeasure);

    /**
     * 批量同步数据
     * @param list
     * @return
     */
    int insertBatch(List<CmMeasure> list);

    /**
     * 清空数据重新抽取
     * @return
     */
    int truncateTable();
}

